package com.yunduansing.core.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.yunduansing.core.commons.DbCommon;
import com.yunduansing.core.dto.Template;
import com.yunduansing.core.model.TemplateModel;

public interface TemplateDao {
	List<Template> getButtonsByTemplateId(@Param(value = "id") int id);
	List<TemplateModel> pagination(@Param(value="grid") DbCommon.Grid grid,Map<String,Object> keys);
	int pageCount(Map<String,Object> keys);
	TemplateModel getById(@Param(value="id") int id);
	int add(@Param(value="model") TemplateModel model);
	int update(@Param(value="model") TemplateModel model);
	int delete(List<Integer> ids);
	List<TemplateModel> getAll();
}
